Skip to content

add vue textmate bundle#3480

Open
DetachHead wants to merge 1 commit intoJetBrains:masterfrom
DetachHead:vue-upstream
Open

add vue textmate bundle#3480
DetachHead wants to merge 1 commit intoJetBrains:masterfrom
DetachHead:vue-upstream

Conversation

@DetachHead
Copy link
Copy Markdown

@DetachHead DetachHead commented Apr 9, 2026

Note

Medium Risk
Adds a large vendored Vue TextMate grammar/language configuration bundle and updates the bundle-fetch script to clone from an additional upstream repo, which can affect syntax highlighting behavior and introduces dependency on an external source during bundle updates.

Overview
Adds a new plugins/textmate/lib/bundles/vue bundle (from vuejs/language-tools/Volar) including Vue SFC TextMate grammar, Vue/Markdown/HTML language configurations, and injection grammars for directives, interpolations, and Vue code blocks in Markdown/MDX.

Updates plugins/textmate/loadVSCBundles.sh to clone vuejs/language-tools and copy the Vue bundle’s LICENSE, package.json, README.md, syntaxes, and languages into the repo during bundle refresh.

Reviewed by Cursor Bugbot for commit 4c5de86. Bugbot is set up for automated code reviews on this repo. Configure here.

cp -r "LICENSE" "$ROOT/lib/bundles/vue"
cp -r "package.json" "$ROOT/lib/bundles/vue"
cp -r "README.md" "$ROOT/lib/bundles/vue"
cp -r "syntaxes" "$ROOT/lib/bundles/vue"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Script omits copying languages/ directory for Vue bundle

High Severity

The Vue bundle's package.json references language configuration files at ./languages/vue-language-configuration.json, ./languages/markdown-language-configuration.json, and ./languages/sfc-template-language-configuration.json, but the copy commands only copy LICENSE, package.json, README.md, and syntaxes. The languages/ directory from the upstream repo is never copied. VSCBundleReader.readPreferences() silently returns empty results when these files are missing, so the Vue bundle will lack bracket matching, auto-closing pairs, comment toggling, and indentation rules.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fbb1e3b. Configure here.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to work fine without it, but i've added them just in case

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding these files causes it to crash since these files are missing a mandatory field - #3480 (comment)

i've dropped that commit because it seems to work fine without them anyway

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4c5de86. Configure here.

@BartvHelvert
Copy link
Copy Markdown
Member

Hi, please check our Contributing guidelines and adjust the PR accordingly.

@cursor
Copy link
Copy Markdown

cursor bot commented Apr 10, 2026

You have used all of your free Bugbot PR reviews.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@DetachHead
Copy link
Copy Markdown
Author

i've created a youtrack issue and updated the commit message to reference it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants